﻿using System.Linq;
using Quickie.Models;
using Quickie.Models.IoC;
using Quickie.Models.Data;
using Quickie.Models.Entities;
using Quickie.Models.ViewModel;
using Quickie.Models.Interfaces;


namespace Quickie.Models.Interfaces
{
    /// <summary>
    /// Sucelje koje predstavlja repozitorije.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRepository<T> where T:class
    {
        IQueryable<T> GetAll();
        T GetByID(int ID);
        void Save(T item);
        void Delete(T item);
        void SaveChanges();
    }
}